import React from 'react';
import { ShopItem } from './interface/index.d';

export const CartItem: React.FC<{ data: ShopItem }> = (props) => {
    return (
        <p>
            {props.data.name}
            <span> 数量 {props.data.quantity}</span>
        </p>
    )
}